<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:decorate template="resources/template/modelo.xhtml">
        <ui:define name="centro">
            <f:view encoding="ISO-8859-1">  
                <h:messages />
                <h:form>
                    <h:panelGrid columns="2">
                        <h:outputLabel for="j_username" value="Usuário: " />
                        <h:inputText id="j_username" required="true" requiredMessage="Informe o usuário"/>
                        <h:outputLabel for="j_password" value="Senha: " />
                        <h:inputSecret id="j_password" required="true" requiredMessage="Informe a senha"/>
                        <h:commandButton id="submit" value="Ingresar" action="../j_spring_security_check" />
                    </h:panelGrid>
                </h:form>
            </f:view>
        </ui:define>
    </ui:decorate>
</html>